<?php
session_start();
require_once 'config.php';
require_once 'dbc.php';
require_once 'functions.php';
require_once 'pagePieces.php';

if(logged_in()){
	header("Location: index.php");
	exit();
}

login($_POST["id"], $_POST["password"]);

header("Location: index.php");
exit();
?>